/*
 * Copyright (C) 2010-2011 Comcast Cable.  All Rights Reserved.
 */
package com.hercules.android.receiver;

/**
 * This exception is thrown by the AndroidReceiver in all public business methods if there is an error during execution.
 * <p>
 * <b>Thread safety:</b> This class is not thread safe because its base class is not thread safe.
 *
 * @author argolite, 7realm
 * @version 1.0
 */
public class AndroidReceiverException extends Exception {
    /** Serial version UID. */
    private static final long serialVersionUID = -441412258207098650L;

    /**
     * Creates a new instance of this exception with no error message and no inner cause.
     */
    public AndroidReceiverException() {
        // call base constructor
    }

    /**
     * Creates a new instance of this exception with error message.
     *
     * @param message the detailed error message of this exception
     */
    public AndroidReceiverException(String message) {
        super(message);
    }

    /**
     * Creates a new instance of this exception with no error message but with inner cause.
     *
     * @param cause the inner cause of this exception
     */
    public AndroidReceiverException(Throwable cause) {
        super(cause);
    }

    /**
     * Creates a new instance of this exception with error message and inner cause.
     *
     * @param message the detailed error message of this exception
     * @param cause the inner cause of this exception
     */
    public AndroidReceiverException(String message, Throwable cause) {
        super(message, cause);
    }
}